-- GENERATED SPELL FOR [Warmaul Champion] --


function spell0_18402(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(31403,pUnit)
pUnit:RegisterEvent('Sorts_18402', 617, 1)
end

function spell1_18402(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(32323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18402', 2333, 1)
end

function spell2_18402(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(15708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18402', 5348, 1)
end

function spell3_18402(pUnit, Event) --@Sundering Cleave,n/a--
pUnit:FullCastSpellOnTarget(17963,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18402', 30335, 1)
end

function Sorts_18402(pUnit, Event)
local choix_sorts_18402 = math.random(0, 3)
if choix_sorts_18402 == 0 then
pUnit:RegisterEvent('spell0_18402', 1, 1)
end
if choix_sorts_18402 == 1 then
pUnit:RegisterEvent('spell1_18402', 1, 1)
end
if choix_sorts_18402 == 2 then
pUnit:RegisterEvent('spell2_18402', 1, 1)
end
if choix_sorts_18402 == 3 then
pUnit:RegisterEvent('spell3_18402', 1, 1)
end
end

function mob18402_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18402', math.random(1500, 3000), 1)
end

function mob18402_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18402_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18402_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18402, 1, 'mob18402_Action')
RegisterUnitEvent(18402, 2, 'mob18402_Leave')
RegisterUnitEvent(18402, 3, 'mob18402_Kill')
RegisterUnitEvent(18402, 4, 'mob18402_Die')
